<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>inweo.widgets.menu test</title>
		<script src="../lib/mootools.js"></script>
		<script src="../inweo.js"></script>
		<script type="text/javascript">
			function main() {
				inweo.require("box");
				inweo.require("menu");

				var page = new inweo.widgets.vbox(this);

				var menuBar = new inweo.widgets.menuBar();
				page.pack(menuBar);

				var fileMenu = new inweo.widgets.menu(menuBar);
				fileMenu.text("File");

					var fileNew = new inweo.widgets.menuItem(fileMenu);
					fileNew.text("New");
					fileNew.picture(inweo.get("path") + "/tests/InweoLogo.jpg");
					fileNew.accelerator("n");
					fileNew.onClick(function() {
						alert("'file > new' activated");
					});

				var editMenu = new inweo.widgets.menu(menuBar);
				editMenu.text("Edit");

				var viewMenu = new inweo.widgets.menu(menuBar);
				viewMenu.text("View");

				var historyMenu = new inweo.widgets.menu(menuBar);
				historyMenu.text("History");

				var bookmarksMenu = new inweo.widgets.menu(menuBar);
				bookmarksMenu.text("Bookmarks");

				var toolsMenu = new inweo.widgets.menu(menuBar);
				toolsMenu.text("Tools");

				var helpMenu = new inweo.widgets.menu(menuBar);
				helpMenu.text("Help");
			}
		</script>
	</head>
	<body>
	</body>
</html>